﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Able.Api.Tests.Controllers
{
    [TestClass]
    public class TipsController : BaseControllerTest
    {
        public TipsController()
        {
            url += ApiHelper.Url + "Tips/";
            dict.Add("siteId", siteId);
            dict.Add("memberId", memberId);
            dict.Add("langFlag", langFlag);
            dict.Add("currencyFlag", currencyFlag);
        }

        [TestMethod]
        public void GetOrder()
        {
            url += "Get";

            dict.Add("type", 2);


            var data = "?siteId=14&langflag=tw&key=&currencyFlag=CNY&memberId=1240&type=1";
            str = ApiHelper.SendGet(url + data);

            str = ApiHelper.SendGet(url + data);
            RightAssert();
        }

        [TestMethod]
        public void GetHome()
        {
            url += "Get";

            dict.Add("type", 1);
            str = ApiHelper.SendGet(url, dict);
            RightAssert();
        }
    }
}
